package com.aabte.testng;

import org.testng.annotations.*;

/**
 * 基本注解测试
 */
public class BasicAnnotation {

    @BeforeClass
    public void beforeClass(){
        System.out.println("beforeClass这是测试类之前运行的！");
    }

    @BeforeMethod
    public void beforeMethod(){
        System.out.println("beforeMethod这是测试方法之前运行的！");
    }

    @Test
    public void testCase1(){
        System.out.println("这是测试用例1！");
    }

    @Test
    public void testCase2(){
        System.out.println("这是测试用例2！");
    }

    @AfterMethod
    public void afterMethod(){
        System.out.println("afterMethod这是测试方法之后运行的！");
    }


    @AfterClass
    public void afterClass(){
        System.out.println("afterClass这是测试类之后运行的！");
    }

    @BeforeSuite
    public void beforeSuite(){
        System.out.println("beforeSuite测试套件！");
    }

    @AfterSuite
    public void afterSuite(){
        System.out.println("afterSuite测试套件！");
    }

}
